package org.jeecg.modules.workflow.convert.definition;


import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.common.workflow.vo.definition.form.BpmFormCreateReqVO;
import org.jeecg.common.workflow.vo.definition.form.BpmFormRespVO;
import org.jeecg.common.workflow.vo.definition.form.BpmFormSimpleRespVO;
import org.jeecg.common.workflow.vo.definition.form.BpmFormUpdateReqVO;
import org.jeecg.modules.workflow.entity.BpmForm;

import java.util.List;

/**
 * 动态表单 Convert
 *
 * @author 芋艿
 */
public interface BpmFormConvert {

    BpmForm convert(BpmFormCreateReqVO bean);

    BpmForm convert(BpmFormUpdateReqVO bean);

    BpmFormRespVO convert(BpmForm bean);

    List<BpmFormSimpleRespVO> convertList2(List<BpmForm> list);

    IPage<BpmFormRespVO> convertPage(IPage<BpmForm> page);

}
